package com.gk.study.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gk.study.common.CourseStatus;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("b_course")
public class Course {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("order_id")
    private Long orderId;

    @TableField("teacher_id")
    private Long teacherId;

    @TableField("student_id")
    private Long studentId;
    @TableField("title")
    private String title;
    @TableField("cover")
    private String cover;

    @TableField("start_time")
    private LocalDateTime startTime;

    @TableField("end_time")
    private LocalDateTime endTime;
    @TableField("status")
    private CourseStatus status;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("teacher_name")
    private String teacherName;

    @TableField("mobile")
    private String mobile;

    @TableField("student_confirmed")
    private Boolean studentConfirmed;

    @TableField("teacher_confirmed")
    private Boolean teacherConfirmed;

    @TableField(exist = false)
    private Boolean hasEvaluation;

    public void setHasEvaluation(Boolean hasEvaluation) {
        this.hasEvaluation = hasEvaluation;
    }


}